package com.situ.mall.common.service.impl;

import com.situ.mall.common.entity.Location;
import com.situ.mall.common.mapper.LocationMapper;
import com.situ.mall.common.service.ILocationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author JavaWizard
 * @since 2023-09-22
 */
@Service
public class LocationServiceImpl extends ServiceImpl<LocationMapper, Location> implements ILocationService {

    //添加收货地址
    @Override
    public void addLocation(Location location) {
        baseMapper.addLocation(location);
    }

    //查全部收货地址
    @Override
    public List<Location> selectByMemberId(Integer memberId) {
        return baseMapper.selectByMemberId(memberId);
    }
}
